package com.allcontroller;


import com.wzy.pojo.Student2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller2 {
    @Autowired
    Student2 student1;

    @RequestMapping("/test2")
    public void test(){
        System.out.println(student1);
    }

}
